<!-- BEGIN PAGE HEADER-->
<?php $this->load->view('partials/breadcrumb.tpl',  Array('_NO_IOSS_NEW'=>'1'))?>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<script type="text/javascript">
$(document).ready(function(){
	$("#reset").click(function(){
		$("select").val('');
		$("input[type='text']").val('');
	});
});
</script>
<div class="row">
	<div class="col-md-12">
		<!-- Begin: life time stats -->
		<div class="portlet">
			<?=form_open('', Array('class'=>'form-inline', 'role'=>'form'))?>
				<?=search_form_input('order_no',filterValue('order_no'),'订单号', 'class="form-control input-medium"');?>
				<?=search_form_input('user_id',filterValue('user_id'),'用户编号', 'class="form-control input-medium"');?>
				<?=search_form_input('account',filterValue('account'),'用户账号', 'class="form-control input-medium"');?>
				<?=search_form_input('bank_code',filterValue('bank_code'),'自有通道编号', 'class="form-control input-medium"');?>
				<?=search_form_input('pay_transaction',filterValue('pay_transaction'),'流水号', 'class="form-control input-medium"');?>
				<?=search_form_input('bank_account',filterValue('bank_account'),'用户通道帐户', 'class="form-control input-medium"');?>
				<button type="button" class="btn default" id="reset">重置条件</button>
				<button type="submit" class="btn green about_search">搜索 <i class="fa fa-search"></i></button>
			<?=form_close()?>
			<div class="portlet-body">
				<div class="row">
					<div class="col-md-12">
						<div class="table-scrollable">
							<table class="table table-hover table-bordered table-striped">
								<thead>
								<tr>
									<th>订单号</th>				
									<th>用户编号</th>
									<th>用户账号</th>
									<th>订单数量</th>
									<th>优惠比例</th>
									<th>优惠后数量</th>
									<th>自有通道编号</th>
									<th>流水号</th>
									<th>用户姓名</th>
									<th>用户通道帐户</th>
									<th>通道确认时间</th>
									<th>创建时间</th>
								</tr>
								</thead>
								<tbody>
								<?php  foreach ($list as $node){	?>
									<tr>
										<td>
										<?php if($p->edit){?><a href="<?=site_url($thisModule.$thisController.'/view/'.$node->id)?>"><?php }?>
										<span><?=htmlspecialchars($node->order_no)?></span>
										<?php if($p->edit){?></a><?php }?>
										</td>
										<td><?=htmlspecialchars($node->user_id)?></td>
										<td><?=htmlspecialchars($node->account)?></td>
										<td><?=htmlspecialchars($node->amount)?></td>
										<td><?=htmlspecialchars($node->percet)?></td>
										<td><?=htmlspecialchars($node->recharge_amount)?></td>
										<td><?=htmlspecialchars($node->bank_code)?></td>
										<td><?=htmlspecialchars($node->pay_transaction)?></td>
										<td><?=htmlspecialchars($node->payer_name)?></td>
										<td><?=htmlspecialchars($node->bank_account)?></td>
										<td><?=date('Y-m-d H:i:s',$node->pay_time)?></td>
										<td><?=date('Y-m-d H:i:s',$node->create_time)?></td>
									</tr>
								<?php }?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 text-right">
						<?=$pagination?>
					</div>
				</div>
			</div>
		</div>
		<!-- End: life time stats -->
	</div>
</div>

<!-- END PAGE CONTENT-->
